
		<?php
			require "render.php";
			require "akses.php";
			connect();
			$page = $_POST['page'];
			echo '<h2>CONTENTS</h2>';
			$contents = searchContent("", 5, $page, "like");
			if (sizeof($contents) == 0) {
				echo "Konten tidak ditemukan";
			} else {
				echo "<div id='left_nav'>";
				$i = 1;
				foreach ($contents as $content) {
					echo "<div class='LikeContent'>
				<a onmouseover='' style='cursor: pointer;' onclick=\"return likeThis('like$i');\" id='staty'>
					<img src='images/like.png' alt='post' name='gambarLike' />
				</a>
				<a onmouseover='' style='cursor: pointer;' onclick=\"return dislikeThis('like$i');\">
					<img src='images/dislike.png' alt='post' />
				</a>
				<div class='likeCount'><a id='like$i'>${content['likes']}</a></div >
				<div><a id='statlike$i'></a></div>
			</div>";
					$i++;
				}
				echo "</div>";
				
				echo "<div id='contents'>";
				foreach ($contents as $content) {
					echo render($content);
				}
				echo "</div>
					<div class='clear'></div>";
			}
		?>